package com.changpay.zywy.mvp.contract

import com.changpay.zywy.base.IModel
import com.changpay.zywy.base.IPresenter
import com.changpay.zywy.base.IView
import com.changpay.zywy.bean.HttpResult
import com.changpay.zywy.bean.TodayInfoBean
import com.changpay.zywy.bean.TodayListBean
import io.reactivex.Observable

interface TodayActContract {

    interface View : IView {
        fun ShowTodayInfo(data: TodayInfoBean)
        fun ShowTodayList(data: TodayListBean)
    }

    interface Presenter : IPresenter<View> {

        fun getTodayInfo(map: MutableMap<String, String>)
        fun getTodayList(map: MutableMap<String, String>)

    }

    interface Model : IModel {
        fun getTodayInfo(map: MutableMap<String, String>): Observable<HttpResult<TodayInfoBean>>
        fun getTodayList(map: MutableMap<String, String>): Observable<HttpResult<TodayListBean>>
    }
}